/**
 *Project: jh-framework
 *File: cn.xkshow.framework.spider.dPattern.UrlListFactory.java 
 *Author: admin@xkshow.cn with the copyrite
 ****************************************************************
 *   VERSION       DATE            BY       CHANGE/COMMENT
 * --------------------------------------------------------------
 *    1.0        2013-4-19        xkshow.cn         create
 ****************************************************************
 *note:
 ***************************************************************/ 
package cn.xkshow.commons.spider.dPattern;

import cn.xkshow.commons.spider.baseIface.UrlListI;
import cn.xkshow.commons.spider.model.BlogXkUList;
import cn.xkshow.commons.spider.model.SinaUList;

public class UrlListFactory {

	public static UrlListI getFactory(String type, String url, String charset){
		UrlListI ulst = null;
		if(type.equalsIgnoreCase("SinaUList")){
			ulst = new SinaUList(url, charset);
		}else if(type.equalsIgnoreCase("BlogXkUList")){
			ulst = new BlogXkUList(url, charset);
		}
		
		return ulst;		
	}
}
